package lib.Base;

import java.io.Serializable;
import java.util.ArrayList;

public class PublicGroups implements Serializable {
	/**
	 * Class to store a list of public groups
	 */
	private static final long serialVersionUID = 1L;

	private ArrayList<PublicGroup> publicGroups;
	private int Timestamp;

	public PublicGroups(int Timestamp) {
		this.Timestamp = Timestamp;
		publicGroups = new ArrayList<PublicGroup>();
	}

	public void setTimestamp(int Tiemestamp) {
		this.Timestamp = Tiemestamp;
	}

	public int getTimestamp() {
		return Timestamp;
	}

	public void addPublicGroup(PublicGroup publicGroup) {
		publicGroups.add(publicGroup);
	}

	public ArrayList<PublicGroup> getPublicGroups() {
		return publicGroups;
	}
}
